<?php
/* @var $this HorariosController */
/* @var $model Horarios */
/* @var $form bootstrap.widgets.TbActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'horarios-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of bootstrap.widgets.TbActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Los campos con <span class="required">*</span> Son Requeridos.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'Nombre del Curso'); ?>
		<?php echo $form->dropDownList($model,'id_curso', CHtml::listData(Cursos::model()->findAll(), 'id_curso', 'display')); ?>
		<?php echo $form->error($model,'id_curso'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Aula'); ?>
		<?php echo $form->dropDownList($model,'id_aula', CHtml::listData(Aulas::model()->findAll(), 'id_aula', 'display')); ?>
		<?php echo $form->error($model,'id_aula'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Dia de la semana'); ?>
		<?php echo $form-> dropDownList($model,'dia_semana',array('empty'=>'--Seleccione una opcion--','Lunes'=>'Lunes','Martes'=>'Martes','Miércoles'=>'Miércoles','Jueves'=>'Jueves','Viernes'=>'Viernes','Sábado'=>'Sábado','Domingo'=>'Domingo'));?>
		<?php echo $form->error($model,'dia_semana'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Horario de inicio'); ?>

		<?php echo $form->textField($model,'hora_inicio'); ?>
		
		<?php echo $form->error($model,'hora_inicio'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'horario fin'); ?>
		<?php echo $form->textField($model,'hora_fin'); ?>
		<?php echo $form->error($model,'hora_fin'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Crear' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->